<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>物业管理软件</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="Charisma, a fully featured, responsive, HTML5, Bootstrap admin template.">
	<meta name="author" content="Muhammad Usman">
	<#include "*/pubcss.ftl">	
</head>

<body>
	<#include "*/top.ftl">
	<!-- topbar ends -->
	<div class="container-fluid">
		<div class="row-fluid">
			<#include "*/left.ftl">
			<div id="content" class="span10">
			<!-- content starts -->
			<div>
				<ul class="breadcrumb">
					<li>
						<a href="#">人事管理</a> <span class="divider">/</span>
					</li>
					<li>
						<a href="#">人事信息</a> <span class="divider">/</span>
					</li>
					<li>
						<a href="#">人事维护</a>
					</li>
				</ul>
			</div>
		    <form class="form-horizontal"  action="javascript:saveHrUser()">
		    <div class="row-fluid sortable">
			    <button type="submit" class="btn btn-primary">保存</button>
				<button type="button" class="btn btn-primary" onclick="javascript:window.history.back();">返回</button>
		    </div>
			<div class="row-fluid sortable">		
				<div class="box span12">
					<div class="box-header well" data-original-title>
						<h2><i class="icon-user"></i>人事信息</h2>
					</div>
					<div class="box-content">
						<div class="row-fluid">
							<div class="span6">
							   <fieldset>
								<div class="control-group form-horizontal">
								   <label class="control-label" for="focusedInput">姓名</label>
									<div class="controls">
									    <input class="input-xlarge focused" id="puid" name="puid" type="hidden" value="${(hrUser.puid)?if_exists}">
										<input class="input-xlarge focused" id="name" name="name" type="text" value="${(hrUser.name)?if_exists}">
									</div>
								</div>
								</fieldset> 
							</div>
							<div class="span6">
							   <div class="control-group form-horizontal">
								<label class="control-label">状态</label>
								<div class="controls form-horizontal">
									  <label class="radio">
										<input type="radio" name="state" id="state" value="0"  <#if (hrUser.state)?if_exists!='1'>checked</#if>>
										在职
									  </label>
									  <label class="radio">
										<input type="radio" name="state" id="state" value="1"  <#if (hrUser.state)?if_exists=='1'>checked</#if>>
										离职
							          </label>
								</div>
							  </div>
							</div>
                        </div>
						<div class="row-fluid">
							<div class="span6">
							   <fieldset>
								<div class="control-group form-horizontal">
								   <label class="control-label" for="focusedInput">出生日期</label>
									<div class="controls">
										<input class="input-xlarge focused" readonly id="birthday" name="birthday" type="text" value="${(hrUser.birthday)?if_exists}">
										<img onclick="WdatePicker({el:'birthday',dateFmt: 'yyyy-MM-dd', isShowToday: true})" src="${base}/script/mydate97/skin/datePicker.gif" width="16" height="22" align="absmiddle">
									</div>
								</div>
								</fieldset> 
							</div>
							<div class="span6">
							   <div class="control-group form-horizontal">
								<label class="control-label">性别</label>
								<div class="controls form-horizontal">
								  <label class="radio">
										<input type="radio" name="sex" id="sex" value="男" <#if (hrUser.sex)?if_exists!='女'>checked</#if>>
										男
									  </label>
									  <label class="radio">
										<input type="radio" name="sex" id="sex" value="女" <#if (hrUser.sex)?if_exists=='女'>checked</#if>>
										女
							          </label>
								</div>
							  </div>
							</div>
                        </div>
						<div class="row-fluid">
							<div class="span6">
							   <fieldset>
								<div class="control-group form-horizontal">
								   <label class="control-label" for="focusedInput">身份证号</label>
									<div class="controls">
										<input class="input-xlarge focused" id="icard" name="icard"  type="text" value="${(hrUser.icard)?if_exists}">
									</div>
								</div>
								</fieldset> 
							</div>
							<div class="span6">
							   <div class="control-group form-horizontal">
								<label class="control-label">部门</label>
								<div class="controls form-horizontal">
								      <select id="did" name="did">
								         <#list (depts)?if_exists as dept>
									     <option value="${(dept.did)?if_exists}" <#if (dept.did)?if_exists==(hrUser.dept.did)?if_exists>selected</#if>>${(dept.dname)?if_exists}</option>
										 </#list>
									  </select>
								</div>
							  </div>
							</div>
                        </div>
						<div class="row-fluid">
							<div class="span6">
							   <fieldset>
								<div class="control-group form-horizontal">
								   <label class="control-label" for="focusedInput">工种</label>
									<div class="controls">
										<select id="wid" name="wid">
									     <#list (works)?if_exists as work>
									     <option value="${(work.wid)?if_exists}" <#if (work.wid)?if_exists==(hrUser.work.wid)?if_exists>selected</#if>>${(work.wname)?if_exists}</option>
										 </#list>
									  </select>
									</div>
								</div>
								</fieldset> 
							</div>
							<div class="span6">
							   <div class="control-group form-horizontal">
								<label class="control-label">岗位</label>
								<div class="controls">
								     <select id="wcid" name="wcid">
									     <#list (workContents)?if_exists as workContent>
									     <option value="${(workContent.wcid)?if_exists}" <#if (workContent.wcid)?if_exists==(hrUser.workContent.wcid)?if_exists>selected</#if>>${(workContent.wcname)?if_exists}</option>
										 </#list>
									  </select>
								</div>
							  </div>
							</div>
                        </div>
						<div class="row-fluid">
							<div class="span6">
							   <fieldset>
								<div class="control-group form-horizontal">
								   <label class="control-label" for="focusedInput">岗位工资</label>
									<div class="controls form-horizontal">
									 <input class="input-xlarge focused" id="workmoney" name="workmoney" type="text" value="${(hrUser.workmoney)?if_exists}">
									</div>
								</div>
								</fieldset> 
							</div>
							<div class="span6">
							   <div class="control-group form-horizontal">
								<label class="control-label">文化程度</label>
								<div class="controls">
								      <select id="sid" name="sid">
									     <#list (schools)?if_exists as school>
									     <option value="${(school.sid)?if_exists}" <#if (school.sid)?if_exists==(hrUser.school.sid)?if_exists>selected</#if>>${(school.sname)?if_exists}</option>
										 </#list>
									  </select>
								</div>
							  </div>
							</div>
                        </div>
						<div class="row-fluid">
							<div class="span6">
							   <fieldset>
								<div class="control-group form-horizontal">
								   <label class="control-label" for="focusedInput">参加工作时间</label>
									<div class="controls form-horizontal">
									  <input class="input-xlarge focused" readonly id="ctime" name="ctime" type="text" value="${(hrUser.ctime)?if_exists}">
									  <img onclick="WdatePicker({el:'ctime',dateFmt: 'yyyy-MM-dd', isShowToday: true})" src="${base}/script/mydate97/skin/datePicker.gif" width="16" height="22" align="absmiddle">
									</div>
								</div>
								</fieldset> 
							</div>
							<div class="span6">
							   <div class="control-group form-horizontal">
								<label class="control-label">用工形式</label>
								<div class="controls">
								      <select id="wtid" name="wtid">
									     <#list (workTypes)?if_exists as workType>
									     <option value="${(workType.wtid)?if_exists}" <#if (workType.wtid)?if_exists==(hrUser.workType.wtid)?if_exists>selected</#if>>${(workType.wtname)?if_exists}</option>
										 </#list>
									  </select>
								</div>
							  </div>
							</div>
                        </div>
						<div class="row-fluid">
							<div class="span6">
							   <fieldset>
								<div class="control-group form-horizontal">
								   <label class="control-label" for="focusedInput">住址</label>
									<div class="controls form-horizontal">
									  <input class="input-xlarge focused" id="addr" name="addr" type="text" value="${(hrUser.addr)?if_exists}">
									</div>
								</div>
								</fieldset> 
							</div>
							<div class="span6">
							   <div class="control-group form-horizontal">
								<label class="control-label">联系电话</label>
								<div class="controls">
								  <input class="input-xlarge focused" id="tel" name="tel" type="text" value="${(hrUser.tel)?if_exists}">
								</div>
							  </div>
							</div>
                        </div>
						<div class="row-fluid">
							<div class="span12">
							   <fieldset>
								<div class="control-group form-horizontal">
								   <label class="control-label" for="focusedInput">离职时间</label>
									<div class="controls form-horizontal">
									  <input class="input-xlarge focused" readonly id="ltime" name="ltime" type="text" value="${(hrUser.ltime)?if_exists}">
									  <img onclick="WdatePicker({el:'ltime',dateFmt: 'yyyy-MM-dd', isShowToday: true})" src="${base}/script/mydate97/skin/datePicker.gif" width="16" height="22" align="absmiddle">
									</div>
								</div>
								</fieldset> 
							</div>
                        </div>
						<div class="row-fluid">
							<div class="span12">
								<div class="control-group form-horizontal">
									<label class="control-label" for="focusedInput">备注</label>
									<div class="controls">
										<textarea class="span11" id="hrcontent" name="hrcontent" rows="3">${(hrUser.content)?if_exists}</textarea>
									</div>
								</div>
							</div>
						</div>
						
					</div>
				</div><!--/span-->
			
			</div><!--/row-->
            </form>
			<!-- content ends -->
			</div><!--/#content.span10-->
		</div><!--/fluid-row-->

		
	</div><!--/.fluid-container-->

	<#include "*/infotemplate/alert.ftl">
    <#include "*/infotemplate/saveinfo.ftl">
	<#include "*/pubjs.ftl">
	<script src='${base}/script/hr/hruser_edit.js'></script>	
		
</body>
</html>
